package com.coollang.smartbra.utils;

/**
 * Created by Administrator on 2016/12/8 0008.
 */

public class ClickUtils {

    /**
     * 点击间隔时间控制
     * ClickIntervalTime  间隔时长
     */
    private static long lastClickTime;
    public static boolean isFastClick(long ClickIntervalTime) {
        long ClickingTime = System.currentTimeMillis();
        if ( ClickingTime - lastClickTime < ClickIntervalTime) {
            return true;
        }
        lastClickTime = ClickingTime;
        return false;
    }
}
